package io.renren.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.dao.FybxDetDao;
import io.renren.entity.FybxDetEntity;
import io.renren.service.FybxDetService;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;


@Transactional(propagation= Propagation.REQUIRED)
@Service("fybxDetService")
public class FybxDetServiceImpl implements FybxDetService {
	@Autowired
	private FybxDetDao fybxDetDao;
	
	@Override
	public FybxDetEntity queryObject(Integer bxdetId){
		return fybxDetDao.queryObject(bxdetId);
	}
	
	@Override
	public List<FybxDetEntity> queryList(Map<String, Object> map){
		return fybxDetDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return fybxDetDao.queryTotal(map);
	}
	
	@Override
	public void save(FybxDetEntity fybxDet){
		fybxDetDao.save(fybxDet);
	}

	@Override
	public void update(FybxDetEntity fybxDet){
		fybxDetDao.update(fybxDet);
	}
	
	@Override
	public void delete(Integer bxdetId){
		fybxDetDao.delete(bxdetId);
	}
	
	@Override
	public void deleteBatch(Integer[] bxdetIds){
		fybxDetDao.deleteBatch(bxdetIds);
	}
	
}
